package com.sdy.healthcode.biz.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "车辆出入登记")
public class CarCheckInInfoDTO {

    @ColumnWidth(10)
    @ExcelProperty(value = "姓名" ,index = 0)
    @ApiModelProperty(value = "姓名")
    private String name;

    @ColumnWidth(15)
    @ExcelProperty(value = "车牌号" ,index = 1)
    @ApiModelProperty(value = "车牌号")
    private String carIdNumber;

    @ColumnWidth(15)
    @ExcelProperty(value = "联系方式" ,index = 2)
    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ColumnWidth(20)
    @ExcelProperty(value = "身份证号" ,index = 3)
    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ColumnWidth(15)
    @ExcelProperty(value = "拜访科室" ,index = 4)
    @ApiModelProperty(value = "拜访科室")
    private String visitDepartment;

    @ColumnWidth(10)
    @ExcelProperty(value = "拜访人" ,index = 5)
    @ApiModelProperty(value = "拜访人")
    private String visitPeople;

    @ColumnWidth(10)
    @ExcelIgnore
    @ApiModelProperty(value = "1-进/2-出")
    private Integer action;

    @ColumnWidth(10)
    @ExcelProperty(value = "进/出" ,index = 6)
    @ApiModelProperty(value = "1-进/2-出")
    private String actionStr;

    @ColumnWidth(18)
    @ExcelProperty(value = "登记时间" ,index = 7)
    @ApiModelProperty(value = "登记时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;
}
